<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang="en-gb" dir="ltr" >
<head>
	<?php echo $this->Html->charset(); ?>
	<title>
		<?php echo $title_for_layout; ?>
	</title>

    <?php echo $this->Html->meta('icon', $this->Html->webroot('favicon.ico')); ?>
<?php echo $this->Html->css(array('system','login', 'f_custom')); ?>
<script type="text/javascript">var RootbaseUrl = '<?php echo $baseUrl;?>';</script>
<!--[if IE 7]>
<?php echo $this->Html->css('ie7'); ?>
<![endif]-->
<!--[if lte IE 6]>
<?php echo $this->Html->css('ie6'); ?>
<![endif]-->
<?php echo $this->Html->css('rounded'); ?>
<?php echo $this->Html->script('mootools'); ?>
<script language="javascript" type="text/javascript">
	function setFocus() {
		document.login.username.select();
		document.login.username.focus();
	}
      function form_login()
      {

            if(document.getElementById('modlgn_username').value == '')
            {
                  alert('Please input your username');
                  document.getElementById('modlgn_username').focus();
                  return false;
            }
            if(document.getElementById('modlgn_passwd').value == '')
            {
                 document.getElementById('modlgn_passwd').focus();
                  alert('Please input your password');
                  return false;
            }
            document.login.submit();
      }
</script>
</head>
<body onload="javascript:setFocus()">
<div id="border-top" class="h_green">
  <div>
    <div> <span class="title">
      <?php //echo $this->site_config->title;?>
      </span> </div>
  </div>
</div>
<div id="content-box">
  <div class="padding">
    <div id="element-box" class="login">
      <div class="t">
        <div class="t">
          <div class="t"></div>
        </div>
      </div>
      <div class="m">
        <h1><?php echo $site_name;?>! Administration Login</h1>
        <?php echo $this->Session->flash('auth'); ?>
        <div id="section-box">
          <div class="t">
            <div class="t">
              <div class="t"></div>
            </div>
          </div>
          <div class="m"> <?php echo $content_for_layout; ?> </div>
          <div class="b">
            <div class="b">
              <div class="b"></div>
            </div>
          </div>
        </div>
        <p>Use a valid username and password to gain access to the Administrator Back-end.</p>
        <p> <a href="<?php echo $baseUrl;?>">Return to site Home Page</a> </p>
        <div id="lock"></div>
        <div class="clr"></div>
      </div>
      <div class="b">
        <div class="b">
          <div class="b"></div>
        </div>
      </div>
    </div>
    <noscript>
    Warning! JavaScript must be enabled for proper operation of the Administrator back-end.
    </noscript>
    <div class="clr"></div>
  </div>
</div>
<div id="border-bottom">
  <div>
    <div></div>
  </div>
</div>
<div id="footer">
  <p class="copyright"> Copyright © 2010 <a href="<?php echo $baseUrl;?>"><?php echo $site_name;?></a> . All rights reserved. </p>

</div>
</body>
</html>
